package edu.sdust.ssmstudy.json.base;

import org.apache.ibatis.session.RowBounds;

/**
 * Created by pengcai
 * Date:2017/7/27.
 * Time:10:19:28
 */
public class Page {

    /**
     * @return 返回标准的RowBounds对象，可以直接用于分页查询
     * 可参考UserServiceImpl类。
     */
    public RowBounds getRowBounds(){
        return new RowBounds(num - 1, size);
    }
    private int num;
    private int size;

    public int getNum() {
        return num - 1;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }


}
